package controll;

import java.io.Serializable;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

@ManagedBean
@SessionScoped
public class NavegacaoBean implements Serializable {

	private static final long serialVersionUID = 1L;
	
	public String redirectToLogin(){
		return "/login.xhtml?faces-redirect=true";
	}
	
	public String toLogin(){
		return "/login.xhtml";
	}

	public String redirectToPrincipal(){
		return "/View/Principal.xhtml?faces-redirect=true";
	}
	
	public String toPrincipal(){
		return "/View/Principal.xhtml";
	}
	
	public String redirectToCronograma(){
		return "/View/Cronograma.xhtml?faces-redirect=true";
	}
	
	public String toCronograma(){
		return "/View/Cronograma.xhtml";
	}
	
	public String redirectToConstrutora(){
		return "/View/ConstrutoraLista.xhtml?faces-redirect=true";
	}
	
	public String toConstrutora(){
		return "/View/ConstrutoraLista.xhtml";
	}
}
